package com.yyq.sqlSession;

import java.util.List;

/**
 * @Author yuanyueqiang
 * @Date 2021-11-27 22:43
 */
public interface SqlSession {

    //查询所有
    public <T> List<T> selectList(String statementId,Object...params) throws Exception;

    //查询单个
    public <T> T selectOne(String statementId,Object...params) throws Exception;

    public <T> T getMapper(Class<T> tClass);

    public int insert(String statementId,Object...params) throws Exception;
    public int update(String statementId,Object...params) throws Exception;
    public int delete(String statementId,Object...params) throws Exception;

}
